package day1117_3;

import javax.swing.*;
import java.awt.*;

public class B3 {
    public static void main(String[] args) {
        JFrame  w=new JFrame();//窗口JFrame
        JPanel  p=new JPanel();//面板(黑板)

        BorderLayout  bLay=new BorderLayout();
        p.setLayout(bLay);
        p.add( BorderLayout.NORTH, new JButton("上")  );
        p.add( BorderLayout.CENTER, new JButton("中")  );
        p.add( BorderLayout.SOUTH, new JButton("南")  );

        w.add(p);
        w.setSize(900,600);
        w.setVisible(true);
    }
}
